from sqlalchemy import Integer, String
from sqlalchemy import Column

from FastApi.Database import Base


class UserSchema(Base):
    __tablename__ = "game_user"

    id = Column(Integer, primary_key=True, index=True, unique=True)
    user_name = Column(String(255), nullable=True)
    user_pass = Column(String(255), nullable=True)
    user_nickname = Column(String(255), nullable=True)
    open_id = Column(String(255), nullable=True)
    avatar = Column(String(255), nullable=False)
    gold = Column(Integer, default=0)
    carbonic = Column(Integer, default=0)
    alloy = Column(Integer, default=0)
    ticket = Column(Integer, default=0)
